package com.csun.dsms.service;

import com.csun.dsms.comment.core.support.IService;
import com.csun.dsms.model.domain.YsClasses;
import com.csun.dsms.model.domain.YsStudent;
import com.csun.dsms.model.dto.ys.YsQueryDto;
import com.csun.dsms.model.dto.ys.YsStudentVo;

import java.util.List;

public interface YsStudentService extends IService<YsStudent> {
    /*
     * 添加数据
     * */
    Integer addStudent(YsStudent ysStudent);

    Integer deleteStudentById(Long id);

    Integer editStudent(YsStudent ysStudent);

    /*
     * 根据条件搜索班级
     * */
    List<YsStudent> queryListWithPage(YsQueryDto ysQueryDto);

    /**
     * 根据单个信息查询学生 只查询一条
     * 例如学生名字,手机号,家长名字
     * @param ysStudent
     * @return
     */
    YsStudentVo queryByStudent(YsStudent ysStudent);


}
